package oving1;
import java.util.Scanner;

public class oppg1 {
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int sum=0;
		int pos=0;
		while(input.hasNextInt()){
			int t = input.nextInt();
			if(t>0){
				pos++;
				sum+=t;
			}
		}
		System.out.print("You input "+pos + " positive values, the sum is "+sum+" and their average is "+(pos!=0?(sum/pos):0));
	}
}
